package module 
{
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	import module.items.Module1;
	import module.items.Module2;
	import org.robotlegs.xxl.mvcs.Context;
	
	/**
	 * ...
	 * @author XXL
	 */
	public class ModuleTestContext extends Context 
	{
		private var moduel1:Module1;
		private var module2:Module2;
		public function ModuleTestContext(contextView:DisplayObjectContainer)
		{
			super(contextView);
		}
		
		override public function startup():void 
		{
			super.startup();
			
			var s:Sprite = new Sprite();
			moduel1 = new Module1(s,true,injector);
			contextView.addChild(s);
			moduel1.dispose();
			contextView.removeChild(s);
			
			s = new Sprite();
			module2 = new Module2(s,true,injector);
			contextView.addChild(s);
			s.x = 200;
			module2.dispose();
		}
		
	}

}